// div画table  格式请参考...
.x-table {
  /*border: 1px solid #e9ebf6;*/
  line-height: 30px;
  display: flex;
  flex-wrap: wrap;
  .x-title {
    background: #fafafa;
    vertical-align: middle !important;
    text-align: center;
    min-width: 180px;
    max-width: 180px;
    border-right: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    > label {
      color: #262626;
      font-weight: 400;
      margin: 0;
      position: relative;
      .necessary {
        color: #e3008c;
        position: absolute;
        top: 2px;
        left: -8px;
      }
    }
  }
  .x-input {
    width: 100%;
    padding: 8px 10px;
    margin: auto 0;
    position: relative;
    .el-form-item {
      margin-bottom: 0;
      .el-select,
      .el-date-editor,
      .el-cascader {
        width: 100%;
        min-width: 80px;
      }
    }
    .font-nowrap {
      white-space: nowrap;
      padding: 0 8px;
      color: #666;
    }
  }
  .x-col-12 {
    width: 100% !important;
    display: flex;
    border-top: 1px solid #e9ebf6;
    border-left: 1px solid #e9ebf6;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-11 {
    width: calc(100% / (12 / 11)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-10 {
    width: calc(100% / (12 / 10)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-9 {
    width: calc(100% / (12 / 9)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-8 {
    width: calc(100% / (12 / 8)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-7 {
    width: calc(100% / (12 / 7)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-6 {
    width: calc(100% / (12 / 6)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-5 {
    width: calc(100% / (12 / 5)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-4 {
    width: calc(100% / (12 / 4)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-3 {
    width: calc(100% / (12 / 3)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-2 {
    width: calc(100% / (12 / 2)) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-1 {
    width: calc(100% / 12) !important;
    display: flex;
    border-right: 1px solid #e9ebf6;
  }
  .x-col-12:last-child {
    border-bottom: 1px solid #e9ebf6 !important;
  }
  .x-col-12 > div:last-child {
    border-right: none !important;
  }
}

// 常用的 list
.blue-color {
  color: #1491ed;
  padding: 0 4px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 500;
}

.red-color {
  color: red;
  padding: 0 4px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 500;
}

.com-list-toolbar {
  background: #fff;
  padding: 8px 0;
  width: 100%;
  // padding: 8px 12px;
  padding: 12px 12px 0 12px;
  .com-list-search {
    width: 100%;
    display: flex;
    //
    > .search-div {
      min-width: 150px;
      max-width: 200px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-right: 16px;
    }
  }
  .com-list-btns {
    .el-button-group {
      display: flex;
    }
  }
  .toolbar-tab-wrap {
    width: 100%;
    .toolbar-tab-content {
      height: auto;
      overflow-y: hidden;
      overflow-x: auto;
      display: flex;
      flex-wrap: wrap;
      p {
        display: inline;
        align-self: center;
      }
      .toolbar-tab-name {
        padding: 4px 8px;
        margin-right: 8px;
        cursor: pointer;
        color: #262626;
        border: 1px solid transparent;
      }
      .active {
        color: $--color-primary;
        border-color: currentColor;
        border-radius: 2px;
      }
    }
  }
}

.com-list-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  // padding: 10px 10px 20px;
  background: #f5f5f5;
  .icon-blue {
    color: blue;
  }
  .com-search-box {
    background: #fff;
    width: 100%;
    padding: 8px 12px;
  }
  .com-list-header {
    height: 80px;
    padding: 16px 20px 8px;
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    .list-header-left {
      display: flex;
      .lhl-info {
        padding-left: 12px;
        .lhl-info-h2 {
          font-size: 18px !important;
          font-weight: 600;
          margin-bottom: 12px;
        }
        span {
          color: #595959;
        }
      }
    }
    .list-header-right {
      display: flex;
      align-items: flex-end;
      .list-btn-group {
        display: flex;
      }
    }
  }
  .com-list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    padding: 8px;
    position: relative;
    .com-list-table-box {
      width: 100%;
      // height: calc(100% - 95px); //48+44
      padding: 12px 12px 0 12px;
      flex: 1;
      background: #fff;
      display: flex;
      flex-direction: column;
      .com-list-table {
        max-height: calc(100% - 45px);
        flex: 1;
      }
    }
    .com-list-page {
      position: absolute;
      right: 20px;
      bottom: 20px;
      background: #fff;
    }
    .com-list-card-box {
      // padding: 8px;
      padding: 12px;
      background: #fff;
      flex: 1;
      .card-container {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        .card-box {
          // width: calc(25% - 16px);
          width: 25%;
          // margin: 8px;
          padding: 4px 20px 20px;
          background: url('~@/assets/list/card-bg.png');
          background-size: 100% 100%;
          border-radius: 4px;
          cursor: pointer;
          .card-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 40px;
            h4 {
              padding: 16px 0;
            }
            ::v-deep .el-popover {
              min-width: 80px !important;
            }
          }
          .card-content {
            ul {
              border: 1px solid #d2e9fd;
              border-radius: 4px;
              padding: 8px 0;
              li {
                padding: 0 12px;
                .text-box {
                  white-space: nowrap;
                  position: relative;
                  display: flex;
                  justify-content: space-between;
                  align-items: center;
                  border-bottom: 1px solid #d2e9fd;
                  padding: 12px 0;
                  color: #8c8c8c;
                }
                .text-box:before {
                  content: '';
                  /*单引号双引号都可以，但必须是英文*/
                  width: 2px;
                  height: 16px;
                  /*下划线高度*/
                  background: #1491ed;
                  /*下划线颜色*/
                  position: absolute;
                  top: 12px;
                  left: -13px;
                }
              }
            }
          }
        }
      }
      .card-no-data {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }
  .el-table {
    .el-table__header {
      .has-gutter {
        tr {
          th {
            // background: #fff !important;
            background: #f5f7f9 !important;
          }
        }
      }
    }
    // th {
    //   background: #fff !important;
    // }
    .el-table__empty-block {
      min-height: 300px;
    }
    td {
      border-bottom: 1px solid #ebeef5 !important;
    }
  }
}

.dialog-list-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 500px;
  // padding: 10px 10px 20px;
  // background: #f5f5f5;
  .icon-blue {
    color: blue;
  }
  .com-search-box {
    background: #fff;
    width: 100%;
    padding: 8px 12px;
  }
  .dialog-list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 8px;
    position: relative;
    .dialog-list-table-box {
      width: 100%;
      // height: calc(100% - 95px); //48+44
      padding: 8px;
      flex: 1;
      background: #fff;
      display: flex;
      flex-direction: column;
    }
    .dialog-list-page {
      position: absolute;
      right: 20px;
      bottom: 20px;
      background: #fff;
    }
  }
  .el-table {
    .el-table__header {
      .has-gutter {
        tr {
          th {
            // background: #fff !important;
            background: #f5f7f9 !important;
          }
        }
      }
    }
    // th {
    //   background: #fff !important;
    // }
    .el-table__empty-block {
      min-height: 300px;
    }
    td {
      border-bottom: 1px solid #ebeef5 !important;
    }
  }
}

.handle-color {
  color: #0078d7;
  padding: 0 5px;
}

// 常用的 details
.com-detail-wrap {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  .detail-header-wrap {
    .header-prjInfo {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 12px;
      border-bottom: 1px solid #e9ebf6;
      .header-title {
        width: 50%;
        display: flex;
        .img {
          width: 48px;
          height: 48px;
          display: block;
          margin-right: 12px;
        }
        .info {
          width: calc(100% - 60px);
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          h3 {
            font-size: 18px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 600;
            color: #262626;
            margin: 0;
            margin-bottom: 4px;
          }
          .title-info-box {
            display: flex;
            justify-content: space-between;
            .title-info {
              font-size: 14px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #606263;
            }
          }
        }
      }
    }
  }
  .header-toolbar {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-bottom: 1px solid #e9ebf6;
    .tab-wrap {
      display: flex;
      padding: 0;
      overflow-x: auto;
      > li {
        cursor: pointer;
        margin-right: 16px;
        height: 40px;
        padding: 0 4px 12px 4px;
        display: flex;
        align-items: center;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #606263;
        position: relative;
        white-space: nowrap;
      }
      > li::before {
        content: '';
        position: absolute;
        width: 0;
        bottom: 0;
        left: 0;
        height: 4px;
        background-color: #0078d7;
      }
      > li:hover {
        color: #262626;
      }
      > li:hover:before {
        width: 100%;
        transition: all 0.5s;
      }
      .active-item {
        color: #262626;
      }
      .active-item::before {
        content: '';
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 0;
        height: 4px;
        background-color: #0078d7;
      }
    }
    .btn-warp {
      display: flex;
      justify-content: flex-end;
      height: 32px;
    }
  }
  .detail-body-wrap {
    width: 100%;
    height: calc(100% - 40px);
    overflow: auto;
    flex: 1;
    display: flex;
    justify-content: space-between;
    .validate {
      border: 1px solid #ec4646;
      background: #fce2e2;
      border-left: 4px solid #ec4646;
      padding: 8px;
      margin-bottom: 8px;
      display: flex;
      img {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 8px;
      }
      span {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #262626;
        line-height: 20px;
      }
    }
    .detail-body-left {
      width: 100%;
      height: 100%;
      background: rgb(255, 255, 255);
      overflow: auto;
    }
    .detail-body-right {
      width: 390px;
      background-color: #fff;
      flex-shrink: 0;
      overflow: hidden;
      .detail-file-wrap {
        height: 100%;
        .file-tabs {
          height: 100%;
          background: #ffffff;
          border: 1px solid #dcdfe6;
          box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
        }
        .file-content {
          height: 100%;
        }
      }
    }
    .detail-body {
      width: 100%;
      padding-right: 16px;
      .detail-body-form {
        width: 100%;
        .detail-form-title {
          font-size: 18px;
          font-weight: 600;
          font-family: PingFangSC-Medium, PingFang SC;
          color: #262626;
          border-bottom: 1px solid #e9ebf6;
          padding: 12px 0;
          margin-top: 8px;
          margin-bottom: 16px;
        }
        .table-box {
          width: 100%;
          border-bottom: 1px solid #e9ebf6;
          padding-bottom: 16px;
        }
        .landTable-box {
          width: 100%;
          ::v-deep .el-table {
            .el-table__empty-block {
              min-height: 300px;
            }
            td {
              border-bottom: 1px solid #ebeef5 !important;
            }
          }
        }
      }
    }
  }
}

// 台账表格右侧公共按钮组
.filtrate-table__btn--group {
  height: 32px;
  background: #ffffff;
  border-radius: 2px;
  border: 1px solid #94989c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 8px;
  .svg-item {
    border-right: 1px solid #b9bfdf;
    margin-right: 8px;
    padding-right: 8px;
    box-sizing: content-box;
    cursor: pointer;
    &:last-child {
      border-right: none;
      padding-right: 0;
      margin-right: 0;
    }
  }
  .svg-icon.filtrate-table__btn--group-icon {
    fill: #606263;
    font-size: 18px;
  }
}

// 常用的 window
.com-window-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px 10px 20px;
  .icon-blue {
    color: blue;
  }
  .com-window-toolbar {
    background: #fff;
    padding: 8px 0;
  }
  .com-window-body {
    width: 100%;
    height: calc(100% - 95px); //48+44
    flex: 1;
    background: #fff;
  }
  .el-table {
    th {
      background: #fff !important;
    }
    .el-table__empty-block {
      min-height: 300px;
    }
    td {
      border-bottom: 1px solid #ebeef5 !important;
    }
  }
}

// 常用样式----------------
.fill-height {
  height: 100%;
}

.fill-width {
  width: 100%;
}

// .full-height {
//   height: 100%;
// }
// .full-width {
//   width: 100%;
// }
// 操作列 查看详情按钮
.cell > .svg-icon.icon__document--detail {
  fill: $--color-primary;
  font-size: 20px;
}

.view-xicon {
  color: #0078d7;
}

// 指标库
.flex {
  display: flex;
}

.align-items-c {
  // 垂直居中对齐
  align-items: center;
}

.f-align-top {
  // 顶上边界对齐
  align-items: flex-start;
}

.f-align-bottom {
  // 顶下边界对齐
  align-items: flex-start;
}

.f-align-stretch {
  // 顶上下边界对齐
  align-items: stretch;
}

.f-align-baseline {
  // 第一行文字的基线对齐
  align-items: baseline;
}

.f-column {
  display: flex;
  flex-direction: column;
}

.f-wrap {
  display: flex;
  flex-wrap: wrap;
}

.f-initial {
  flex-direction: initial;
}

.f-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.f-around {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.f-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.f-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex1 {
  flex: 1;
}

.flex-auto {
  flex: auto;
}

// 水平垂直居中
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.descriptions-label {
  color: #262626 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  width: 180px !important;
  text-align: center !important;
  // margin: 0;
  // position: relative;
}

.descriptions-content {
  color: #262626 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  .el-form-item {
    margin-bottom: 0 !important;
    .el-select,
    .el-date-editor,
    .el-cascader {
      width: 100% !important;
    }
  }
}